#include "poll_server.hpp"

// ./server port
int main(int argc, char* argv[])
{
  if (argc != 2){
    std::cout << "Usage: " << argv[0] << " port" << std::endl;
    return 1;
  }
  //ns_poll::PollServer* server = new ns_poll::PollServer(8081);
  ns_poll::PollServer* server = new ns_poll::PollServer(atoi(argv[1]));
  
  server->InitServer();
  server->Run();
  
  delete server;

  return 0;
}
